<?php

namespace App\Admin\Extensions;
use Dcat\Admin\Widgets\Modal;
use App\Admin\Controllers\UserController;
use App\Admin\Controllers\UserBingshiController;
use App\Admin\Controllers\UserDanganController;
use App\Admin\Controllers\UserWenjuanController;
use Dcat\Admin\Admin;
use Dcat\Admin\Widgets\Tab;

class AddSearch {
    public function __construct(){

    }
    public function render()
    {
        $url = admin_url('users');
        $modal = Modal::make()
        ->title('搜索')
        ->body($this->view())
        ->xl()
        ->onShow(<<<JS
JS
        )->button('<button class="btn btn-primary">搜索</button>');
        return $modal->render();
    }

    public function userForm(){
        Admin::translation('user');
        return app()->make(UserController::class)->grid(-1);
    }

    

    public function view(){
        return $this->userForm();
    }
}